package com.calm.singleton;

import android.util.Log;

public class InnerSingleton {
    private static final String TAG = InnerSingleton.class.getSimpleName();
    private InnerSingleton(){
        Log.e(TAG,"InnerSingleton init");
    }
    private static class Holer{
        private static InnerSingleton INSTANCE = new InnerSingleton();
    }
    public static InnerSingleton getInstance(){
        return Holer.INSTANCE;
    }
    public void sayHello(String name){
        Log.e(TAG,"Hello "+name+",nice to meet you !");
    }
}
